package hotel.compare.oversea.mapper.switchs;

import hotel.base.oversea.repository.MyMapper;
import hotel.compare.oversea.entity.switchs.SwitchCreateSubHotel;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Author lmf
 * @Date 2020/7/20 18:30
 **/
public interface SwitchCreateSubHotelMapper extends MyMapper<SwitchCreateSubHotel> {
    /**
     * 获取未效验的子酒店数据
     * @return
     */
    List<SwitchCreateSubHotel> getNoCompareHotel();

    /**
     * 标记该酒店已经对比过
     * @param masterHotelId
     * @return
     */
    int updateByMasterHotelId(@Param("masterHotelId") Integer masterHotelId);
    /***
    * @Author: lmf
    * @Date: 2020/12/11
     * 根据母酒店获取子酒店id
    */
    Integer selectHotelIdByMasterHotelId(@Param("masterHotelId") Integer masterHotelId);
}
